const mongodb=require('./db');
const index=mongodb.Schema({
    name:String,
    area:String,
    km:String,
    img:String,
    cid:String,
})
const indexSchema=mongodb.model('index',index);
const cate=mongodb.Schema({
    name:String,
    price:Number,
    cid:String,
    img:String,
})
const cateSchema=mongodb.model('cate',cate);

module.exports={
    indexSchema,
    cateSchema
}
